<?php bb_get_header(); ?>
<div id="content">
<h1><?php topic_title(); ?></h1> 
<div class="grid-16-8 clearfix"> 
<div class="article">
<?php foreach ($posts as $bb_post) : $del_class = post_del_class(); ?>
<?php bb_post_template(); ?>
<?php endforeach; ?>
</ul>

<?php if ( topic_is_open( $bb_post->topic_id ) ) : ?>
	<div class="txd"> 
	<?php post_form(); ?>
	</div>
<?php else : ?>
<h2><?php _e('Topic Closed') ?></h2>
<p><?php _e('This topic has been closed to new replies.') ?></p>
<?php endif; ?>
	</div>
<div class="aside"> 
<p class="pl2">回<?php bb_forum_bread_crumb(); ?></p><br/> 
<?php if ( bb_current_user_can( 'delete_topic', get_topic_id() ) || bb_current_user_can( 'close_topic', get_topic_id() ) || bb_current_user_can( 'stick_topic', get_topic_id() ) || bb_current_user_can( 'move_topic', get_topic_id() ) ) : ?>
	<div class="indent"> 
	<?php bb_topic_admin(); ?>
	</div>
<?php endif; ?>
</div>

</div></div>
<?php bb_get_footer(); ?>